<?php
if (isset($workList) && count($workList) > 0) {
    foreach ($workList as $workMsg) {
        $workImg = make_img_name::make_img_mini_name(explode(';', $workMsg->Picture, 2)[0]);
        if ($workImg !== false && count($workImg) > 0) {
            $isRecommend = $myWork->work_recommend_check($workMsg->Id);
            if ($isRecommend === true) $recommendIconEx = ''; else $recommendIconEx = '-o';
            $isCommend = $myWork->work_comment_check($workMsg->Id);
            if ($isCommend === true) $commendIconEx = ''; else $commendIconEx = '-o';
            ?>
            <div class="app-content-divider"></div>
            <div class="am-g">
                <div class="am-thumbnail" style="margin-bottom:0px">
                    <h3 style="margin-top: 5px;margin-bottom: 5px;padding-left: 15px;">
                        <span class="app-tittle-color"><?= $workMsg->Name ?></span><br/><a
                                class="app-author-link"><?= $workMsg->UserName ?></a>
                    </h3>
                    <a onclick="goto_work_show(<?= $workMsg->Id ?>)">
                        <div class="app-img-flex"
                             style="background-image:url(<?= $CfgPara->httproot ?>/works_pic/<?= $workImg ?>);">
                        </div>
                    </a>
                    <div class="am-thumbnail-caption" style="text-align:center;">
                        <div class="am-g">
                            <div class="am-u-sm-4 app-comment-color"><i
                                        class="am-icon am-icon-heart<?= $recommendIconEx ?> am-icon-fw"></i><?= formatDataSize($workMsg->UpCount) ?>
                            </div>
                            <div class="am-u-sm-4 app-comment-color"><i
                                        class="am-icon am-icon-comment<?= $commendIconEx ?> am-icon-fw"></i><?= formatDataSize($workMsg->CommentCount) ?>
                            </div>
                            <div class="am-u-sm-4 app-comment-color"><i
                                        class="am-icon am-icon-eye am-icon-fw"></i><?= formatDataSize($workMsg->ViewCount) ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php } //if($workImg !== false && count($workImg) > 0) 结束
    } //foreach ($workList as $workMsg)结束 
} //if(isset($workList))结束
else //没有内容
{
    if (isset($InputData['page_iscroll_load']) && $InputData['page_iscroll_load'] == 1)
        require("{$CfgPara->root}/view/warning_nocontent.app.v.php");
} ?>